package com.ruoyi.environment.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import com.ruoyi.system.api.domain.SysFile;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 环保巡检对象 opm_env_inspect
 *
 * @author cjie
 * @date 2021-07-23
 */
@Data
@ApiModel
public class OpmEnvInspect extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 序号 */
    @ApiModelProperty(value = "序号")
    @JsonSerialize(using = com.fasterxml.jackson.databind.ser.std.ToStringSerializer.class)
    @JSONField(serializeUsing= ToStringSerializer.class)
    private Long id;

    /** 巡检时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "巡检时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "巡检时间")
    private Date time;

    /** 巡检区域 */
    @Excel(name = "巡检区域")
    @ApiModelProperty(value = "巡检区域")
    private String area;

    /** 巡检企业 */
    @Excel(name = "巡检企业")
    @ApiModelProperty(value = "巡检企业")
    private String company;

    /** 巡检项目 */
    @Excel(name = "巡检项目")
    @ApiModelProperty(value = "巡检项目")
    private String type;

    /** 巡检内容 */
    @Excel(name = "巡检内容")
    @ApiModelProperty(value = "巡检内容")
    private String content;

    /** 巡检结果 */
    @Excel(name = "巡检结果")
    @ApiModelProperty(value = "巡检结果")
    private String result;

    /** 巡检人 */
    @Excel(name = "巡检人")
    @ApiModelProperty(value = "巡检人")
    private String people;

    /** 联系电话 */
    @Excel(name = "联系电话")
    @ApiModelProperty(value = "联系电话")
    private String phone;

    /** 附件数量 */
    @Excel(name = "附件数量")
    @ApiModelProperty(value = "附件数量")
    private Integer attachNum;

    /** 附件 */
    @Excel(name = "附件")
    @ApiModelProperty(value = "附件")
    private String attachUrl;

    /** 附件id集合 */
    @Excel(name = "附件id集合")
    @ApiModelProperty(value = "附件id集合")
    private List<Long> fileIdList;

    /** 附件集合 */
    @Excel(name = "附件集合")
    @ApiModelProperty(value = "附件集合")
    private List<SysFile> fileList;

}
